@extends('layouts.admin')
@section('title')

@endsection
@section('content')
@include('module.nav')

<div class="card">
    <div class="card-header">
        已安装模块列表
    </div>
    <div class="card-body">
        @foreach ($modules as $module)
        <section class="item d-flex justify-content-between align-items-center  pb-3 mb-3">
            <img src="/modules/{{ $module['name'] }}/static/preview.jpg" class="icon rounded-circle mr-3">
            <div class="flex-fill">
                <strong>{{ $module['title']}}</strong>{{ $module['description'] }}<br />
                标识:Edu V1.2
            </div>

            <div>
                @if (!$module['installed'])
                <a href="{{ route('admin.module.install',$module['name']) }}" class="btn btn-info btn-sm">安装</a>
                @else
                <btn-del   action="{{ route('admin.module.uninstall',$module['name']) }}">卸载</btn-del>

                @endif
            </div>
        </section>
        @endforeach




    </div>

</div>
@endsection
